{% if ( extensions ) %}
	<div class="row">
		{% for extension in extensions %}
			<div class="col-lg-3 col-md-4 col-sm-6 col-xs-12">
				<section>
					<div class="extension-preview">
						<a href="{{ extension.url }}" target="_blank">
							<img src="{{ extension.image }}" class="img-responsive" />
						</a>
						<div class="extension-label">
							{% if ( extension.verified ) %}
								<span class="alert alert-success pull-left">{{ entry_verified_text }}</span>
							{% elseif ( extension.verified == false and extension.installed ) %}
								<span class="alert alert-danger pull-left">{{ entry_unverified_text }}</span>
							{% endif %}
									
							{% if ( extension.installed ) %}
								<span class="alert alert-info pull-right">{{ entry_installed_text }}</span>
							{% else %}
								<span class="alert alert-danger pull-right">{{ entry_uninstalled_text }}</span>
							{% endif %}
						</div>
					</div>
					<div class="extension-name">
						<h4><a href="{{ extension.url }}">{{ extension.name }}</a></h4>
					</div>
					<div class="row">
						<div class="col-xs-6"><span class="price">{{ extension.price }}</span></div>
						<div class="col-xs-6">
							{% if ( extension.installed ) %}
								<a href="{{ extension.activated ? extension.deactivate : extension.activate }}" class="toggleActivate btn btn-{{ extension.activated ? 'warning' : 'success' }} pull-right" data-type="{{ extension.type }}" data-f="{{ extension.f }}" data-code="{{ extension.code }}" data-id="{{ extension.id }}">{{ extension.activated ? text_deactivate : text_activate }}</a>
							{% elseif ( extension.download ) %}
								<a href="{{ extension.download }}" data-f="{{ extension.f }}" data-type="{{ extension.type }}" data-code="{{ extension.code }}" class="btn-download-extension btn btn-primary pull-right" target="_blank">{{ text_download }}</a>
							{% elseif ( extension.url ) %}
								<a href="{{ extension.url }}" data-f="{{ extension.f }}" data-type="{{ extension.type }}" data-code="{{ extension.code }}" class="btn-url-extension btn btn-primary pull-right" target="_blank">{{ text_view }}</a>
							{% endif %}
						</div>
					</div>

					<div class="extension-rate">
						<div class="row">
							<div class="col-xs-6">
								{% for i in 1..5 %}
									{% if ( i <= extension.rating ) %}
										<i class="fa fa-star"></i>
									{% else %}
										<i class="fa fa-star-empty"></i>
									{% endif %}
								{% endfor %}
							</div>
							<div class="col-xs-6">
								<div class="text-right">
									{% if ( extension.reviews == 0 or extension.reviews > 1 ) %}
										{{ extension.reviews }} {{ entry_reviews_text }}
									{% else %}
										{{ extension.reviews }} {{ entry_review_text }}
									{% endif %}
								</div>
							</div>
						</div>
					</div>
				</section>
			</div>
		{% endfor %}
	</div>
{% endif %}